package com.ihrm.system;

import com.ihrm.domain.system.Role;
import com.ihrm.system.service.RoleService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class test {
    @Autowired
    RoleService roleService;
    @Test
    public void test() throws Exception {
        List<Role> all = roleService.findAll();
        all.forEach(System.out::println);
    }
}
